home *** CD-ROM | disk | FTP | other *** search
- // SSoundSystem.h: Schnittstelle fⁿr die Klasse SSoundSystem.
- //
- //////////////////////////////////////////////////////////////////////
-
- #if !defined(AFX_SSOUNDSYSTEM_H__420C49C8_297D_4866_A87C_203694F3CB5E__INCLUDED_)
- #define AFX_SSOUNDSYSTEM_H__420C49C8_297D_4866_A87C_203694F3CB5E__INCLUDED_
-
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
-
- #include <bass.h>
-
- #define NUM_SAMPLES 1
-
- enum
- {
- STREAM_RUDI,
- STREAM_BELLS
- };
-
- enum
- {
- SAMPLE_RELEASE
- };
-
- class SSoundSystem
- {
- public:
- void playSample(int which);
- void stopMusic(int which);
- void playMusic(int which,bool looped = false);
- void init(HWND hWnd);
- SSoundSystem();
- virtual ~SSoundSystem();
- protected:
- HSAMPLE samples[NUM_SAMPLES];
- HSTREAM streams[2];
- bool inited;
-
- };
-
- #endif // !defined(AFX_SSOUNDSYSTEM_H__420C49C8_297D_4866_A87C_203694F3CB5E__INCLUDED_)
-